﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sealight.Core.DataAdapter;

namespace Sealight.Core.Domain
{
    public class ArchiveEntity
    {
        public virtual Guid ArchiveID { get; set; }
        public virtual string Title { get; set; }
        public virtual string Description { get; set; }
        public virtual string ExtensionType { get; set; }
        public virtual string FileURL { get; set; }
        public virtual bool IsActive { get; set; }
        public virtual DateTime CreatedDate { get; set; }
        public virtual DateTime UpdatedDate { get; set; }

        public virtual archive ToDataAdapter()
        {
            archive entity = new archive
            {
                id = this.ArchiveID,
                description = this.Description,
                title = this.Title,
                file_url = this.FileURL,
                extension_type = this.ExtensionType,
                created_date = this.CreatedDate,
                updated_date = this.UpdatedDate,
                is_active = this.IsActive
            };

            return entity;
        }
    }
}
